// 选择省市区
const state = {
    provinceId: "", //省ID
    cityId: "" //市Id
};

const mutations = {
    // 获取省的ID
    getProvinceId(state, value) {
        state.provinceId = value;
    },
    // 获取省的ID
    getCityId(state, value) {
        state.cityId = value;
    },

    // 清空省和市的ID
    cleanArea(state, value) {
        state.provinceId = "";
        state.cityId = "";
    }
};

const actions = {};

export default {
    state,
    mutations,
    actions
};
